package edu.sctu.zhuyingzhi.month201505.day20150529.IteratorTest;

import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;

/**
 * Created by user13 on 2015/5/29.
 */
public class Circle {
    public Circle(){
        List<String> name = new ArrayList<>();
        name.add("猪");
        name.add("鸭肉");
        name.add("老鼠");
        Iterator it = name.iterator();

        while(it.hasNext()){
            System.out.println(it.next());
        }
    }
}
